﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using CQIE.TES.Model;
using Newtonsoft.Json.Linq;

namespace CQIE.TES.IService
{
    public interface ITeacherService
    {
        bool FreezeUser(int id);

        Model.Teacher FindByID(int id);

        List<Teacher> GetTeachersPage(int pageNum, int pageSize, string search, out int count);

        void ResetPassWord(int id);

        List<Teacher> GetAllTeachers();

        void InsertTeacher([FromBody] JObject data);

        void updata([FromBody] JObject data);
        List<Teacher> GetDepartMentTeachers(int uid);
        Teacher Login(string username, string password);

        /// <summary>
        /// 通过姓名搜索老师
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        List<Teacher> SearchByName(string name);
    }
}
